import request from '../../request'
// 成本用友-获取列表
export function getAccountOrgationSource(params) {
  return request({
    url: '/etlAccount/getEtlAccountOrgationSource',
    method: 'post',
    data: params
  })
}
// 成本用友-获取费用要素
export function getAccountSource(params) {
  return request({
    url: 'etlAccount/getEtlAccountSource',
    method: 'post',
    data: params
  })
}
// 启用更改-科室-工资
export function updateRowStatus(params) {
  return request({
    url: 'bdEnumdetail/updateRowStatus',
    method: 'post',
    data: params
  })
}
// 新增-科室-工资
export function insertEnumDetailWithSalary(params) {
  return request({
    url: 'bdEnumdetail/insertEnumDetailWithSalary',
    method: 'post',
    data: params
  })
}
// 获取详情-科室-工资
export function getEnumDetailWithSalary(params) {
  return request({
    url: `bdEnumdetail/getEnumDetailWithSalary/${params}`,
    method: 'post'
  })
}
// 获取列表-科室-工资
export function listEnumDetailIsLinkByFuzzy(params) {
  return request({
    url: `bdEnumdetail/listEnumDetailIsLinkByFuzzy`,
    method: 'post',
    data: params
  })
}

// 修改-科室-工资
export function updateEnumDetailWithSalaryInfo(params) {
  return request({
    url: `bdEnumdetail/updateEnumDetailWithSalaryInfo`,
    method: 'post',
    data: params
  })
}
// 启用修改-HIS科室
export function updateHisStatusByEdId(params) {
  return request({
    url: `bdEnumdetail/updateHisStatusByEdId`,
    method: 'post',
    data: params
  })
}
// 获取列表-成本薪酬
export function getRdCostSalaryRelation(params) {
  return request({
    url: `rdCostsalaryrelation/getRdCostSalaryRelation`,
    method: 'post',
    data: params
  })
}

// 删除-成本薪酬
export function batchDeleteRdCostSalaryRelation(params) {
  return request({
    url: `rdCostsalaryrelation/batchDeleteRdCostSalaryRelation`,
    method: 'post',
    data: params
  })
}
// 检查-成本用友
export function getCheck(params) {
  return request({
    url: `bdAccount/getCheck`,
    method: 'post',
    data: params
  })
}

// 批量增加-成本薪酬
export function insertBatchRdCostSalaryRelation(params) {
  return request({
    url: `rdCostsalaryrelation/insertBatchRdCostSalaryRelation`,
    method: 'post',
    data: params
  })
}

// 工资项目
export function getSalarySource(params) {
  return request({
    url: `/etlAcSalary/getSalarySource`,
    method: 'post',
    data: params
  })
}

// 账套信息
export function getAcSetSource(params) {
  return request({
    url: `/etlAcSet/getAcSetSource`,
    method: 'post',
    data: params
  })
}

// 修改  启用状态
export function modifyRdCostSalaryRelation(params) {
  return request({
    url: `/rdCostsalaryrelation/modifyRdCostSalaryRelation`,
    method: 'post',
    data: params
  })
}

// 收入列表
export function listEtlInComeSource(params) {
  return request({
    // url: `/etlInComeSource/listInComeSource`,
    url: `/baseInCome/listBaseInCome`,
    method: 'post',
    data: params
  })
}
// 收入项目下拉框
export function listEnumDetail(params) {
  return request({
    url: `/bdEnumdetail/listEnumDetail`,
    method: 'post',
    data: params
  })
}

// 生成sql
export function JudgmentCodeGenerator(params) {
  return request({
    url: `/JudgmentCodeGenerator`,
    method: 'post',
    data: params
  })
}

// 获取成本数据列表
export function getCostData(params) {
  return request({
    url: `/CostData/getCostData`,
    method: 'post',
    data: params
  })
}

// 获取成本数据列表
export function listBaseCost(params) {
  return request({
    url: `/baseCost/listBaseCost`,
    method: 'post',
    data: params
  })
}

// 收入数据-获取开单科室未关联数据
export function getUnLinkHisCodeWithBill(params) {
  return request({
    url: `/etlInComeSource/getUnLinkHisCodeWithBill`,
    method: 'post',
    data: params
  })
}
// 收入数据-获取执行科室未关联数据
export function getUnLinkHisCodeWithExecutive(params) {
  return request({
    url: `/etlInComeSource/getUnLinkHisCodeWithExecutive`,
    method: 'post',
    data: params
  })
}
// 成本薪酬系统-继承
export function inheritzt(params) {
  return request({
    url: `/etlAcSet/inherit`,
    method: 'post',
    data: params
  })
}
// 成本薪酬系统-检查
export function checkRelation(params) {
  return request({
    url: `/rdCostsalaryrelation/checkRelation`,
    method: 'post',
    data: params
  })
}

// 规则对照-成本薪酬-同步数据到浒关
export function syscRecord(params) {
  return request({
    url: `/rdCostsalaryrelation/syscRecord`,
    method: 'get',
    params
  })
}




